﻿using System.Windows.Forms;

namespace HuaCheng.UserControls
{
    public partial class ChannelBlank : UserControl
    {
        #region 全局参数
        private string chlMapId;
        public delegate void ChlRevert();//委托修改右键菜单Enable属性
        public event ChlRevert ChlRightMouseClick;//事件
        #endregion
        #region 初始化
        public ChannelBlank()
        {
            InitializeComponent();
        }
        //方法
        public void OnChlRevert()
        {
            if (ChlRightMouseClick != null)
            {
                ChlRightMouseClick();
            }
        }
        /// <summary>
        /// 在底层控件上右键
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void chlBlank_MouseDown(object sender, MouseEventArgs e)
        {
            OnChlRevert();
        }
        /// <summary>
        /// chlMapId get set
        /// </summary>
        public string ChlMapId
        {
            get { return chlMapId; }
            set
            {
                chlMapId = value;
                this.lblBlankChId.Text = value;
            }
        }
        #endregion
    }
}
